<!--
 * @Description: Web project
 * @Version: 2.0
 * @Autor: WenChing
 * @Email: 2510129345@qq.com
 * @Date: 2020-08-11 21:55:52
 * @LastEditors: WenChing
 * @LastEditTime: 2020-08-12 01:58:45
-->
<template>
  <div class="infobar">
    <div class="navbar">
      <div class="logo"><img
          src="@/assets/logo.png"
          alt=""
        ></div>
      <div>
        <input
          text="search"
          placeholder="请输入需要搜索内容"
        >
        <van-icon
          class="ipt-icon"
          name="search"
          size="4.444vw"
        />
      </div>
      <div>
        <img
          src="@/assets/pic.jpg"
          alt=""
        >
        <p>下载APP</p>
      </div>
    </div>
  </div>
</template>

<script>
import userDetail from '@/components/common/userComponent/userDetail'
export default {
  data() {
    return {};
  },
  components:{
    userDetail,
  },
  created() {},
  mounted() {},
  methods: {}
};
</script>

<style scoped lang="less">
.infobar {
  .navbar {
    display: flex;
    height: 12.5vw;
    background-color: white;
    .logo {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 33.3333vw;

      img {
        width: 80%;
        height: 80%;
      }
    }
    div:nth-child(2) {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      input {
        font-size: 3.3333vw;
        border: none;
        background-color: #f4f4f4;
        height: 7.6666vw;
        width: 100%;
        border-radius: 2.7778vw;
        color: #aaa;
        padding-right: 7.2222vw;
        padding-left: 2.7778vw;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
      }
      .ipt-icon {
        position: absolute;
        right: 1vw;
        // top: 50%;
        // transform: translate(0,-50%);
        color: #ccc;
      }
    }
    div:nth-child(3) {
      display: flex;
      margin-left: 1.3889vw;
      justify-content: center;
      align-items: center;
      img {
        border: 1px solid #f4f4f4;
        border-radius: 50%;
        width: 6.6667vw;
        height: 6.6667vw;
      }
      p {
        margin-left: 3.2vw;
        width: 21.33333vw;
        height: 6.4vw;
        line-height: 6.4vw;
        margin: 0 1.3889vw;
        background: #fb7299;
        border: none;
        border-radius: 0.53333vw;
        color: #fff;
        font-size: 3.46667vw;
        vertical-align: top;
        text-align: center;
      }
    }
  }
  
}
</style>
